import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import daohang from '@/components/daohang'
import Update from '@/components/Update'
import viewImage from "../views/viewImage";
import Garbage from "../components/garbage"

import Hh from '../views/hh'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/hh',
      component: Hh
    },
    {
      path:'/daohang',
      component: daohang,
      children:[
        {
          path:'/daohang/hh',
          component: Hh
        },
        {
          path:'/daohang/viewImage',
          component:viewImage
        },
        {
          path: '/daohang/garbage',
          component: Garbage
        },{
          path: '/daohang/update',
          component: Update
        }
      ]

    }
  ]
})
